﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RXY_Mall.Services.Manager.Dto
{
    /// <summary>
    /// 批量添加管理员信息
    /// </summary>
    public class AddManagersInput : MangerBaseInput
    {
        /// <summary>
        /// 管理员录入信息
        /// </summary>
        public List<ManagerInput> managers { get; set; }
    }

    /// <summary>
    /// 管理员信息
    /// </summary>
    public class ManagerInput
    {
        /// <summary>
        /// 对接公司编号
        /// </summary>
        public string api_company_id { get; set; }
        /// <summary>
        /// 对接店铺编号
        /// </summary>
        public string api_shop_id { get; set; }
        /// <summary>
        /// 对接管理员编号
        /// </summary>
        [Required(ErrorMessage = "对接管理员编号不能为空")]
        public string api_manager_id { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        [Required(ErrorMessage = "手机号不能为空")]
        public string mobile { get; set; }
        /// <summary>
        /// 管理员角色 1-业务员 3-管理员
        /// </summary>
        [Required(ErrorMessage = "管理员角色不能为空")]
        public byte manager_type { get; set; }
    }

    /// <summary>
    /// 登录输入信息
    /// </summary>
    public class LoginInput
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage = "手机号不能为空！")]
        public string user_name { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码不能为空！")]
        public string password { get; set; }
    }

    /// <summary>
    /// 登录输出信息
    /// </summary>
    public class LoginOutput
    {
        /// <summary>
        /// 管理员ID
        /// </summary>
        public int manager_id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string user_name { get; set; }
        /// <summary>
        /// token
        /// </summary>
        public string token { get; set; }
    }
}
